package com.chenlei.toppopup.model;

import android.support.annotation.ColorRes;
import android.support.annotation.DrawableRes;

/**
 * Created by chenlei on 2018/3/9.
 */

public class CLModel {
    private String text;
    private boolean isEditText = false;
    private int maxLength = 8;
    private boolean isLeft = false;
    private boolean isSelected = true;
    private @DrawableRes int rightDrawable = 0;//右侧默认图片
    private @DrawableRes int rightSelectDrawable = 0;//右侧选中

    public CLModel(){

    }

    public CLModel(String text) {
        this.text = text;
    }

    public CLModel(String text, boolean isEditText)
    {
        this.text = text;
        this.isEditText = isEditText;
    }

    public CLModel(String text, boolean isEditText, int maxLength) {
        this.text = text;
        this.isEditText = isEditText;
        this.maxLength = maxLength;
    }

    public CLModel(String text, boolean isEditText, int maxLength, boolean isLeft)
    {
        this.text = text;
        this.isEditText = isEditText;
        this.maxLength = maxLength;
        this.isLeft = isLeft;
    }

    public CLModel(String text, boolean isEditText, int maxLength, boolean isLeft, boolean
        isSelected)
    {
        this.text = text;
        this.isEditText = isEditText;
        this.maxLength = maxLength;
        this.isLeft = isLeft;
        this.isSelected = isSelected;
    }

    public CLModel(String text, boolean isEditText, int maxLength, boolean isLeft, boolean
        isSelected, int rightDrawable)
    {
        this.text = text;
        this.isEditText = isEditText;
        this.maxLength = maxLength;
        this.isLeft = isLeft;
        this.isSelected = isSelected;
        this.rightDrawable = rightDrawable;
        this.rightSelectDrawable = rightDrawable;
    }

    public CLModel(String text, boolean isEditText, int maxLength, boolean isLeft, boolean
        isSelected, int rightDrawable, int rightSelectDrawable)
    {
        this.text = text;
        this.isEditText = isEditText;
        this.maxLength = maxLength;
        this.isLeft = isLeft;
        this.isSelected = isSelected;
        this.rightDrawable = rightDrawable;
        this.rightSelectDrawable = rightSelectDrawable;
    }

    public int getRightSelectDrawable()
    {
        return rightSelectDrawable;
    }

    public void setRightSelectDrawable(int rightSelectDrawable)
    {
        this.rightSelectDrawable = rightSelectDrawable;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public boolean isEditText() {
        return isEditText;
    }

    public void setEditText(boolean editText) {
        isEditText = editText;
    }

    public int getMaxLength() {
        return maxLength;
    }

    public void setMaxLength(int maxLength) {
        this.maxLength = maxLength;
    }

    public boolean isLeft()
    {
        return isLeft;
    }

    public void setLeft(boolean left)
    {
        isLeft = left;
    }

    public boolean isSelected()
    {
        return isSelected;
    }

    public void setSelected(boolean selected)
    {
        isSelected = selected;
    }

    public int getRightDrawable()
    {
        return rightDrawable;
    }

    public void setRightDrawable(int rightDrawable)
    {
        this.rightDrawable = rightDrawable;
    }
}
